<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<%@include file="/WEB-INF/pages/include/prelude.jspf"%>
<%@include file="/WEB-INF/pages/include/common.jspf"%>
<link href="<c:url value='/static/css/promote.css' />" type="text/css" rel="stylesheet"/>
<script type="text/javascript" src="<c:url value='/static/js/validate.js' />"></script>

<title>促销公告</title>
<script type="text/javascript">
$(function(){
   	$("#pagetitle").html('促销公告');
});

function submitForm(){
	if (!IsNull('memberNumber', '知音卡号'))
		return false;
	$("#form").submit();
}
</script>
</head>
<body>
<div data-role="page">
	<%@include file="/WEB-INF/pages/include/header.jsp"%>
	<div data-role="content">
		<div class="pro_info">
			<div class="info_title">${p.title }</div>
			${p.text }
		</div>
		<br />
		<form id="form" action="<c:url value='/moreInfo/regPromote.do' />" method="post" data-ajax = "false" >
		<input id="productId" name="productId" type="hidden" value="${p.productId}" />
		<div><div class="i_label"><span class="xh"></span>知音卡号：</div><input data-role="none" id="memberNumber" value="${memberNumber}" name="memberNumber" type="text" class="txt" /><div class="clear"></div></div>
		<div><button class="btn" onclick="submitForm();" data-theme="f" type="button">注册</button></div>
		</form>
		<div class="more"><a data-role="none" href="javascript:;" onclick="window.location.href='<c:url value="/moreInfo/inPromoteList.do" />'">查看更多内容</a></div>
	</div>
</div>
</body>
</html>